inherited frmClientCenter: TfrmClientCenter
  Left = 209
  Top = 133
  Caption = #23458#25143#35746#21333#31649#29702
  ClientHeight = 531
  ClientWidth = 956
  ExplicitLeft = -116
  ExplicitTop = -125
  ExplicitWidth = 964
  ExplicitHeight = 577
  PixelsPerInch = 96
  TextHeight = 12
  inherited Panel1: TPanel
    Top = 41
    Width = 956
    Height = 65
    Align = alTop
    Visible = True
    ExplicitTop = 41
    ExplicitWidth = 548
    ExplicitHeight = 65
    inherited img3: TImage
      Left = 1117
      Top = 14
      Visible = False
      ExplicitLeft = 709
      ExplicitTop = 14
    end
    inherited labFuncName: TcxLabel
      Left = 8
      Top = 13
      Caption = #23458#25143#21517#31216
      Style.IsFontAssigned = True
      ExplicitLeft = 8
      ExplicitTop = 13
      ExplicitWidth = 52
    end
    inherited labFuncDesc: TcxLabel
      Left = 220
      Top = 13
      Style.IsFontAssigned = True
      Visible = False
      ExplicitLeft = 220
      ExplicitTop = 13
    end
    object edtClient: TcxDBLookupComboBox
      Tag = 8
      Left = 60
      Top = 11
      DataBinding.DataField = 'traderid'
      DataBinding.DataSource = dsClient
      Properties.CaseSensitiveSearch = True
      Properties.DropDownSizeable = True
      Properties.GridMode = True
      Properties.ImmediatePost = True
      Properties.ListColumns = <>
      Properties.PostPopupValueOnTab = True
      TabOrder = 0
      Width = 145
    end
    object btnFilter: TcxButton
      Left = 606
      Top = 9
      Width = 75
      Height = 25
      Caption = #36807#28388
      DropDownMenu = pmSelSOrder
      TabOrder = 3
      OnClick = muAllSOrderClick
    end
    object cxLabel2: TcxLabel
      Left = 242
      Top = 13
      Caption = #36215#22987#26085#26399
      Transparent = True
    end
    object cxLabel3: TcxLabel
      Left = 425
      Top = 13
      Caption = #25130#27490#26085#26399
      Transparent = True
    end
    object edtSDate: TcxDateEdit
      Left = 294
      Top = 12
      Properties.DateButtons = [btnToday]
      Properties.ImmediatePost = True
      Properties.SaveTime = False
      Properties.ShowTime = False
      TabOrder = 1
      Width = 121
    end
    object edtEDate: TcxDateEdit
      Left = 479
      Top = 12
      Properties.DateButtons = [btnToday]
      Properties.ImmediatePost = True
      Properties.SaveTime = False
      Properties.ShowTime = False
      TabOrder = 2
      Width = 121
    end
    object cxCheckBox1: TcxCheckBox
      Left = 687
      Top = 11
      Caption = #35814#32454#36807#28388
      TabOrder = 4
      Transparent = True
    end
    object btnNewSaleOrder: TcxButton
      Left = 10
      Top = 35
      Width = 75
      Height = 25
      Caption = #26032#22686#35746#21333
      TabOrder = 9
      OnClick = btnNewSaleOrderClick
    end
    object cxRadioButton1: TcxRadioButton
      Left = 243
      Top = 40
      Width = 113
      Height = 17
      Caption = #20840#37096#35746#21333
      Checked = True
      TabOrder = 10
      TabStop = True
      Transparent = True
    end
    object cxRadioButton2: TcxRadioButton
      Left = 320
      Top = 40
      Width = 113
      Height = 17
      Caption = #22312#25191#34892#35746#21333
      TabOrder = 11
      Transparent = True
    end
    object cxRadioButton3: TcxRadioButton
      Left = 412
      Top = 40
      Width = 113
      Height = 17
      Caption = #24050#23436#25104#35746#21333
      TabOrder = 12
      Transparent = True
    end
  end
  object pgcClient: TcxPageControl [3]
    Left = 0
    Top = 106
    Width = 956
    Height = 386
    Align = alClient
    TabOrder = 1
    Properties.ActivePage = tsSaleOrderInfo
    Properties.CustomButtons.Buttons = <>
    OnChange = pgcClientChange
    ExplicitWidth = 548
    ExplicitHeight = 184
    ClientRectBottom = 386
    ClientRectRight = 956
    ClientRectTop = 23
    object tsSaleOrderInfo: TcxTabSheet
      Caption = #35746#21333#20449#24687
      ImageIndex = 0
      ExplicitWidth = 548
      ExplicitHeight = 161
      object grdSaleOrder: TcxGrid
        Left = 0
        Top = 0
        Width = 956
        Height = 115
        Align = alClient
        TabOrder = 0
        ExplicitWidth = 548
        ExplicitHeight = 117
        object viewSaleOrder: TcxGridDBTableView
          Navigator.Buttons.CustomButtons = <>
          OnCellDblClick = viewSaleOrderCellDblClick
          DataController.DataSource = dsSaleOrder
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 25
          OnCustomDrawIndicatorCell = viewSaleOrderCustomDrawIndicatorCell
          object viewSaleOrderchoice: TcxGridDBColumn
            DataBinding.FieldName = 'choice'
            PropertiesClassName = 'TcxCheckBoxProperties'
            Properties.ImmediatePost = True
            Width = 30
          end
          object viewSaleOrderbdate: TcxGridDBColumn
            DataBinding.FieldName = 'bdate'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 100
          end
          object viewSaleOrderbcode: TcxGridDBColumn
            DataBinding.FieldName = 'bcode'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 120
          end
          object viewSaleOrderamount: TcxGridDBColumn
            DataBinding.FieldName = 'amount'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
          end
          object viewSaleOrderrevdate: TcxGridDBColumn
            DataBinding.FieldName = 'revdate'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSaleOrderforwardamt: TcxGridDBColumn
            DataBinding.FieldName = 'forwardamt'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSaleOrderdeptname: TcxGridDBColumn
            DataBinding.FieldName = 'deptname'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSaleOrderempname: TcxGridDBColumn
            DataBinding.FieldName = 'empname'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSaleOrderremark: TcxGridDBColumn
            DataBinding.FieldName = 'remark'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 200
          end
        end
        object lvlSaleOrder: TcxGridLevel
          GridView = viewSaleOrder
        end
      end
      object cxSplitter1: TcxSplitter
        Left = 0
        Top = 115
        Width = 956
        Height = 8
        Cursor = crVSplit
        HotZoneClassName = 'TcxXPTaskBarStyle'
        AlignSplitter = salBottom
        Control = pgcDtl
        ExplicitTop = -87
        ExplicitWidth = 548
      end
      object pgcDtl: TcxPageControl
        Left = 0
        Top = 123
        Width = 956
        Height = 240
        Align = alBottom
        TabOrder = 2
        Properties.ActivePage = tsSaleOrderDtl
        Properties.CustomButtons.Buttons = <>
        OnChange = pgcDtlChange
        ExplicitTop = -79
        ExplicitWidth = 548
        ClientRectBottom = 240
        ClientRectRight = 956
        ClientRectTop = 23
        object tsSaleOrderDtl: TcxTabSheet
          Caption = #35746#21333#26126#32454
          ImageIndex = 0
          ExplicitWidth = 548
          object grdSaleOrderDtl: TcxGrid
            Left = 0
            Top = 0
            Width = 956
            Height = 217
            Align = alClient
            TabOrder = 0
            ExplicitWidth = 548
            object viewSaleOrderDtl: TcxGridDBTableView
              OnDblClick = btnBomClick
              Navigator.Buttons.CustomButtons = <>
              DataController.DataSource = dsSaleOrderDtl
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 25
              OnCustomDrawIndicatorCell = viewSaleOrderCustomDrawIndicatorCell
              object viewSaleOrderDtlchoice: TcxGridDBColumn
                Caption = #36873#25321
                DataBinding.FieldName = 'choice'
                PropertiesClassName = 'TcxCheckBoxProperties'
                Visible = False
                HeaderAlignmentHorz = taCenter
                Width = 30
              end
              object viewSaleOrderDtlm_bcode: TcxGridDBColumn
                Caption = #21333#21495
                DataBinding.FieldName = 'm_bcode'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 120
              end
              object viewSaleOrderDtlp_code: TcxGridDBColumn
                Caption = #36135#21697#32534#30721
                DataBinding.FieldName = 'p_code'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object viewSaleOrderDtlp_name: TcxGridDBColumn
                Caption = #21517#31216
                DataBinding.FieldName = 'p_name'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object viewSaleOrderDtlp_spec: TcxGridDBColumn
                Caption = #35268#26684
                DataBinding.FieldName = 'p_spec'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object viewSaleOrderDtlunitname: TcxGridDBColumn
                Caption = #21333#20301
                DataBinding.FieldName = 'unitname'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
              end
              object viewSaleOrderDtlprice: TcxGridDBColumn
                Caption = #21333#20215
                DataBinding.FieldName = 'price'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object viewSaleOrderDtlquantity: TcxGridDBColumn
                Caption = #25968#37327
                DataBinding.FieldName = 'quantity'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object viewSaleOrderDtlamount: TcxGridDBColumn
                Caption = #37329#39069
                DataBinding.FieldName = 'amount'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object viewSaleOrderDtlexplan: TcxGridDBColumn
                Caption = #35828#26126
                DataBinding.FieldName = 'explan'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 200
              end
            end
            object lvlSaleOrderDtl: TcxGridLevel
              GridView = viewSaleOrderDtl
            end
          end
        end
        object tsDtlSum: TcxTabSheet
          Caption = #26126#32454#27719#24635
          ImageIndex = 2
          object grdDtlSum: TcxGrid
            Left = 0
            Top = 0
            Width = 956
            Height = 217
            Align = alClient
            TabOrder = 0
            object viewDtlSum: TcxGridDBTableView
              Navigator.Buttons.CustomButtons = <>
              DataController.DataSource = dsDtlSum
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 25
              OnCustomDrawIndicatorCell = viewSaleOrderCustomDrawIndicatorCell
              object cxGridDBColumn10: TcxGridDBColumn
                Caption = #36135#21697#32534#30721
                DataBinding.FieldName = 'p_code'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object cxGridDBColumn11: TcxGridDBColumn
                Caption = #21517#31216
                DataBinding.FieldName = 'p_name'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object cxGridDBColumn12: TcxGridDBColumn
                Caption = #35268#26684
                DataBinding.FieldName = 'p_spec'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object viewDtlSumbaseunitname: TcxGridDBColumn
                Caption = #22522#26412#21333#20301
                DataBinding.FieldName = 'baseunitname'
                HeaderAlignmentHorz = taCenter
              end
              object cxGridDBColumn13: TcxGridDBColumn
                Caption = #21333#20215
                DataBinding.FieldName = 'price'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object cxGridDBColumn14: TcxGridDBColumn
                Caption = #25968#37327
                DataBinding.FieldName = 'quantity'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object cxGridDBColumn15: TcxGridDBColumn
                Caption = #37329#39069
                DataBinding.FieldName = 'amount'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object cxGridDBColumn16: TcxGridDBColumn
                Caption = #35828#26126
                DataBinding.FieldName = 'explan'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 200
              end
              object viewDtlSumbcodeqty: TcxGridDBColumn
                Caption = #25968#25454#28304
                DataBinding.FieldName = 'bcodeqty'
              end
            end
            object lvlDtlSum: TcxGridLevel
              GridView = viewDtlSum
            end
          end
        end
        object tsBomSum: TcxTabSheet
          Caption = #29289#26009#27719#24635
          ImageIndex = 1
          object grdBomSum: TcxGrid
            Left = 0
            Top = 0
            Width = 956
            Height = 217
            Align = alClient
            TabOrder = 0
            object viewBomSum: TcxGridDBTableView
              Navigator.Buttons.CustomButtons = <>
              DataController.DataSource = dsBomSum
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 25
              OnCustomDrawIndicatorCell = viewSaleOrderCustomDrawIndicatorCell
              object cxGridDBColumn1: TcxGridDBColumn
                Caption = #36873#25321
                DataBinding.FieldName = 'choice'
                PropertiesClassName = 'TcxCheckBoxProperties'
                Visible = False
                HeaderAlignmentHorz = taCenter
                Width = 30
              end
              object cxGridDBColumn2: TcxGridDBColumn
                Caption = #36135#21697#32534#30721
                DataBinding.FieldName = 'p_code'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object cxGridDBColumn3: TcxGridDBColumn
                Caption = #21517#31216
                DataBinding.FieldName = 'p_name'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object cxGridDBColumn4: TcxGridDBColumn
                Caption = #35268#26684
                DataBinding.FieldName = 'p_spec'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 100
              end
              object viewBomSumunitname: TcxGridDBColumn
                Caption = #22522#26412#21333#20301
                DataBinding.FieldName = 'unitname'
                HeaderAlignmentHorz = taCenter
                Width = 50
              end
              object cxGridDBColumn5: TcxGridDBColumn
                Caption = #21333#20215
                DataBinding.FieldName = 'price'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object cxGridDBColumn6: TcxGridDBColumn
                Caption = #25968#37327
                DataBinding.FieldName = 'quantity'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object cxGridDBColumn7: TcxGridDBColumn
                Caption = #37329#39069
                DataBinding.FieldName = 'amount'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 80
              end
              object viewBomSumbookqty: TcxGridDBColumn
                DataBinding.FieldName = 'bookqty'
                GroupSummaryAlignment = taCenter
                Width = 60
              end
              object viewBomSumfactqty: TcxGridDBColumn
                DataBinding.FieldName = 'factqty'
                GroupSummaryAlignment = taCenter
                Width = 60
              end
              object viewBomSumneedqty: TcxGridDBColumn
                DataBinding.FieldName = 'needqty'
                GroupSummaryAlignment = taCenter
                Width = 60
              end
              object viewBomSumbcodeqty: TcxGridDBColumn
                Caption = #25968#25454#28304
                DataBinding.FieldName = 'bcodeqty'
                HeaderAlignmentHorz = taCenter
                Width = 120
              end
              object cxGridDBColumn8: TcxGridDBColumn
                Caption = #35828#26126
                DataBinding.FieldName = 'explan'
                HeaderAlignmentHorz = taCenter
                Options.Editing = False
                Width = 200
              end
              object viewBomSumColumn1: TcxGridDBColumn
                DataBinding.FieldName = 'custom1'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn2: TcxGridDBColumn
                DataBinding.FieldName = 'custom2'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn3: TcxGridDBColumn
                DataBinding.FieldName = 'custom3'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn4: TcxGridDBColumn
                DataBinding.FieldName = 'custom4'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn5: TcxGridDBColumn
                DataBinding.FieldName = 'custom5'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn6: TcxGridDBColumn
                DataBinding.FieldName = 'p_custom1'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn7: TcxGridDBColumn
                DataBinding.FieldName = 'p_custom2'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn8: TcxGridDBColumn
                DataBinding.FieldName = 'p_custom3'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn9: TcxGridDBColumn
                DataBinding.FieldName = 'p_custom4'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
              object viewBomSumColumn10: TcxGridDBColumn
                DataBinding.FieldName = 'p_custom5'
                HeaderAlignmentHorz = taCenter
                Width = 100
              end
            end
            object lvlBomSum: TcxGridLevel
              GridView = viewBomSum
            end
          end
        end
      end
    end
    object tsSaleProduct: TcxTabSheet
      Caption = #20379#38144#36135#21697
      ImageIndex = 1
      object grdSaleProduct: TcxGrid
        Left = 0
        Top = 0
        Width = 956
        Height = 363
        Align = alClient
        TabOrder = 0
        object viewSaleProduct: TcxGridDBTableView
          Navigator.Buttons.CustomButtons = <>
          DataController.DataSource = dsSaleProduct
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 25
          OnCustomDrawIndicatorCell = viewSaleOrderCustomDrawIndicatorCell
          object viewSaleProductchoice: TcxGridDBColumn
            Caption = #36873#25321
            DataBinding.FieldName = 'choice'
            PropertiesClassName = 'TcxCheckBoxProperties'
            HeaderAlignmentHorz = taCenter
            Width = 30
          end
          object viewSaleProductp_code: TcxGridDBColumn
            Caption = #36135#21697#32534#30721
            DataBinding.FieldName = 'p_code'
            HeaderAlignmentHorz = taCenter
            Width = 80
          end
          object viewSaleProductp_name: TcxGridDBColumn
            Caption = #21517#31216
            DataBinding.FieldName = 'p_name'
            HeaderAlignmentHorz = taCenter
            Width = 80
          end
          object viewSaleProductp_spec: TcxGridDBColumn
            Caption = #35268#26684
            DataBinding.FieldName = 'p_spec'
            HeaderAlignmentHorz = taCenter
            Width = 80
          end
        end
        object lvlSaleProduct: TcxGridLevel
          GridView = viewSaleProduct
        end
      end
    end
  end
  object pnlBottom: TPanel [4]
    Left = 0
    Top = 492
    Width = 956
    Height = 39
    Align = alBottom
    BevelOuter = bvNone
    TabOrder = 2
    ExplicitTop = 290
    ExplicitWidth = 548
    DesignSize = (
      956
      39)
    object btnMakeBill: TcxButton
      Left = 292
      Top = 7
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #19979#36798#19979#32423#21333#25454
      DropDownMenu = pmMakeBill
      Kind = cxbkDropDown
      TabOrder = 0
    end
    object btnExcel: TcxButton
      Left = 380
      Top = 7
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #23548#20986'Excel'
      TabOrder = 3
      OnClick = btnExcelClick
    end
    object btnBom: TcxButton
      Left = 7
      Top = 7
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #29289#26009#28165#21333
      TabOrder = 2
      OnClick = btnBomClick
    end
    object btnCancel: TcxButton
      Left = 700
      Top = 8
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #36864#20986
      TabOrder = 1
      OnClick = btnCancelClick
    end
    object chkShowPic: TcxCheckBox
      Left = 600
      Top = 9
      Anchors = [akLeft, akBottom]
      Caption = #26174#31034#22270#29255
      Properties.ImmediatePost = True
      TabOrder = 4
      Transparent = True
      OnClick = chkShowPicClick
    end
    object btnCheck: TcxButton
      Left = 91
      Top = 7
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #23457#26680
      OptionsImage.Glyph.Data = {
        36030000424D3603000000000000360000002800000010000000100000000100
        1800000000000003000000000000000000000000000000000000FF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF80808080
        8080FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FF808080FF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF00800000800000
        8000FF00FF808080FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FF008000008000008000008000008000FF00FF808080FF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF00800000800000800000800000
        8000008000FF00FF808080FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        008000008000008000008000FF00FF008000008000008000FF00FF808080FF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF008000008000FF00FFFF00FFFF
        00FF008000008000FF00FF808080FF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FF008000008000008000FF00FF8080
        80FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FF008000008000FF00FF808080FF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF008000008000FF00
        FF808080FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FF008000008000FF00FF808080FF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF0080000080
        00FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FF008000FF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF}
      TabOrder = 5
      Visible = False
      OnClick = btnCheckClick
    end
  end
  object pnlClientInfo: TPanel [5]
    Left = 0
    Top = 0
    Width = 956
    Height = 41
    Align = alTop
    BevelOuter = bvNone
    TabOrder = 3
    Visible = False
    ExplicitWidth = 548
  end
  inherited MainDataSource: TDataSource
    Left = 261
    Top = 89
  end
  inherited ImageList1: TImageList
    Left = 7
    Top = 219
  end
  inherited MainMenu1: TMainMenu
    Left = 14
    Top = 100
  end
  inherited ActionList1: TActionList
    Left = 61
    Top = 219
  end
  inherited PopupMenu1: TPopupMenu
    Left = 16
    Top = 154
  end
  object dsClient: TDataSource
    DataSet = cdsClient
    Left = 184
    Top = 97
  end
  object cdsClient: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 132
    Top = 85
    object cdsClienttraderid: TIntegerField
      FieldName = 'traderid'
      OnChange = cdsClienttraderidChange
    end
  end
  object pmSelSOrder: TPopupMenu
    Left = 728
    Top = 45
    object muAllSOrder: TMenuItem
      Caption = #20840#37096#35746#21333
      OnClick = muAllSOrderClick
    end
    object muExecing: TMenuItem
      Tag = 1
      Caption = #22312#25191#34892#35746#21333
    end
    object muCompleted: TMenuItem
      Tag = 2
      Caption = #24050#23436#25104#35746#21333
    end
  end
  object dsSaleOrderDtl: TDataSource
    DataSet = cdsSaleOrderDtl
    Left = 200
    Top = 310
  end
  object cdsSaleOrderDtl: TClientDataSet
    Aggregates = <>
    Params = <>
    ProviderName = 'dspSaleOrderDtl'
    AfterScroll = cdsSaleOrderDtlAfterScroll
    Left = 144
    Top = 326
  end
  object dspSaleOrderDtl: TDataSetProvider
    DataSet = qrySaleOrderDtl
    Left = 88
    Top = 306
  end
  object qrySaleOrderDtl: TUniQuery
    Connection = MainDM.UniConn
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Left = 24
    Top = 322
  end
  object cdsSaleOrder: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 344
    Top = 162
    object cdsSaleOrderchoice: TBooleanField
      DisplayLabel = #36873#25321
      FieldName = 'choice'
    end
    object cdsSaleOrderbid: TIntegerField
      FieldName = 'bid'
    end
    object cdsSaleOrderbdate: TDateTimeField
      DisplayLabel = #26085#26399
      FieldName = 'bdate'
    end
    object cdsSaleOrderbcode: TStringField
      DisplayLabel = #21333#21495
      FieldName = 'bcode'
      Size = 40
    end
    object cdsSaleOrderamount: TFloatField
      DisplayLabel = #24635#37329#39069
      FieldName = 'amount'
    end
    object cdsSaleOrderrevdate: TDateTimeField
      DisplayLabel = #21457#36135#26085#26399
      FieldName = 'revdate'
    end
    object cdsSaleOrderforwardamt: TFloatField
      DisplayLabel = #39044#25910#27454
      FieldName = 'forwardamt'
    end
    object cdsSaleOrderdeptname: TStringField
      DisplayLabel = #37096#38376
      FieldName = 'deptname'
      Size = 60
    end
    object cdsSaleOrderempname: TStringField
      DisplayLabel = #19994#21153#21592
      FieldName = 'empname'
      Size = 40
    end
    object cdsSaleOrderremark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'remark'
      Size = 200
    end
  end
  object qrySaleProduct: TUniQuery
    Connection = MainDM.UniConn
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Left = 516
    Top = 114
  end
  object dspSaleProduct: TDataSetProvider
    DataSet = qrySaleProduct
    Left = 572
    Top = 94
  end
  object cdsSaleProduct: TClientDataSet
    Aggregates = <>
    Params = <>
    ProviderName = 'dspSaleProduct'
    Left = 628
    Top = 110
  end
  object dsSaleProduct: TDataSource
    DataSet = cdsSaleProduct
    Left = 688
    Top = 98
  end
  object cxStyleRepository1: TcxStyleRepository
    Left = 796
    Top = 506
    PixelsPerInch = 96
    object bsSelect: TcxStyle
      AssignedValues = [svColor]
      Color = clGradientActiveCaption
    end
    object bsNormal: TcxStyle
      AssignedValues = [svColor]
      Color = clWindow
    end
  end
  object dsSaleOrder: TDataSource
    DataSet = cdsSaleOrder
    Left = 400
    Top = 178
  end
  object cdsBomSum: TClientDataSet
    Aggregates = <>
    FieldDefs = <>
    IndexDefs = <>
    Params = <>
    ProviderName = 'dspBomSum'
    StoreDefs = True
    Left = 356
    Top = 426
    object cdsBomSumchoice: TBooleanField
      FieldName = 'choice'
    end
    object cdsBomSumproductid: TIntegerField
      FieldName = 'productid'
    end
    object cdsBomSump_code: TStringField
      FieldName = 'p_code'
      Size = 40
    end
    object cdsBomSump_name: TStringField
      FieldName = 'p_name'
      Size = 60
    end
    object cdsBomSump_spec: TStringField
      FieldName = 'p_spec'
      Size = 60
    end
    object cdsBomSumprice: TFloatField
      FieldName = 'price'
    end
    object cdsBomSumquantity: TFloatField
      FieldName = 'quantity'
    end
    object cdsBomSumamount: TFloatField
      FieldName = 'amount'
    end
    object cdsBomSumexplan: TStringField
      FieldName = 'explan'
      Size = 2000
    end
    object cdsBomSumbcodeqty: TStringField
      FieldName = 'bcodeqty'
      Size = 2000
    end
    object cdsBomSumcustom1: TStringField
      DisplayLabel = #33258#23450#20041'1'
      FieldName = 'custom1'
      Size = 200
    end
    object cdsBomSumcustom2: TStringField
      DisplayLabel = #33258#23450#20041'2'
      FieldName = 'custom2'
      Size = 200
    end
    object cdsBomSumcustom3: TStringField
      DisplayLabel = #33258#23450#20041'3'
      FieldName = 'custom3'
      Size = 200
    end
    object cdsBomSumcustom4: TStringField
      DisplayLabel = #33258#23450#20041'4'
      FieldName = 'custom4'
      Size = 200
    end
    object cdsBomSumcustom5: TStringField
      DisplayLabel = #33258#23450#20041'5'
      FieldName = 'custom5'
      Size = 200
    end
    object cdsBomSump_custom1: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'1'
      FieldName = 'p_custom1'
      Size = 200
    end
    object cdsBomSump_custom2: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'2'
      FieldName = 'p_custom2'
      Size = 200
    end
    object cdsBomSump_custom3: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'3'
      FieldName = 'p_custom3'
      Size = 200
    end
    object cdsBomSump_custom4: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'4'
      FieldName = 'p_custom4'
      Size = 200
    end
    object cdsBomSump_custom5: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'5'
      FieldName = 'p_custom5'
      Size = 200
    end
    object cdsBomSumunitname: TStringField
      FieldName = 'unitname'
      Size = 60
    end
    object cdsBomSumproductpid: TIntegerField
      FieldName = 'productpid'
    end
    object cdsBomSumbookqty: TFloatField
      DisplayLabel = #36134#38754#24211#23384
      FieldName = 'bookqty'
    end
    object cdsBomSumfactqty: TFloatField
      DisplayLabel = #23454#38469#24211#23384
      FieldName = 'factqty'
    end
    object cdsBomSumneedqty: TFloatField
      DisplayLabel = #26412#27425#38656#27714
      FieldName = 'needqty'
    end
  end
  object dsBomSum: TDataSource
    DataSet = cdsBomSum
    Left = 416
    Top = 426
  end
  object cdsDtlSum: TClientDataSet
    Aggregates = <>
    FieldDefs = <>
    IndexDefs = <>
    Params = <>
    ProviderName = 'dspSaleOrderDtl'
    StoreDefs = True
    AfterScroll = cdsSaleOrderDtlAfterScroll
    Left = 32
    Top = 386
    object cdsDtlSumproductid: TIntegerField
      FieldName = 'productid'
    end
    object cdsDtlSump_code: TStringField
      FieldName = 'p_code'
      Size = 40
    end
    object cdsDtlSump_name: TStringField
      FieldName = 'p_name'
      Size = 60
    end
    object cdsDtlSump_spec: TStringField
      FieldName = 'p_spec'
      Size = 60
    end
    object cdsDtlSumprice: TFloatField
      FieldName = 'price'
    end
    object cdsDtlSumquantity: TFloatField
      FieldName = 'quantity'
    end
    object cdsDtlSumamount: TFloatField
      FieldName = 'amount'
    end
    object cdsDtlSumbcodeqty: TStringField
      FieldName = 'bcodeqty'
      Size = 200
    end
    object cdsDtlSumexplan: TStringField
      FieldName = 'explan'
      Size = 2000
    end
    object cdsDtlSumunitname: TStringField
      FieldName = 'unitname'
      Size = 60
    end
  end
  object dsDtlSum: TDataSource
    DataSet = cdsDtlSum
    Left = 88
    Top = 386
  end
  object cdsBom: TClientDataSet
    Aggregates = <>
    FieldDefs = <>
    IndexDefs = <>
    Params = <>
    ProviderName = 'dspBomSum'
    StoreDefs = True
    Left = 384
    Top = 384
    object BooleanField1: TBooleanField
      FieldName = 'choice'
    end
    object IntegerField1: TIntegerField
      FieldName = 'productid'
    end
    object StringField1: TStringField
      FieldName = 'p_code'
      Size = 40
    end
    object StringField2: TStringField
      FieldName = 'p_name'
      Size = 60
    end
    object StringField3: TStringField
      FieldName = 'p_spec'
      Size = 60
    end
    object FloatField1: TFloatField
      FieldName = 'price'
    end
    object FloatField2: TFloatField
      FieldName = 'quantity'
    end
    object FloatField3: TFloatField
      FieldName = 'amount'
    end
    object StringField4: TStringField
      FieldName = 'explan'
      Size = 2000
    end
    object StringField5: TStringField
      FieldName = 'bcodeqty'
      Size = 2000
    end
    object StringField6: TStringField
      DisplayLabel = #33258#23450#20041'1'
      FieldName = 'custom1'
      Size = 200
    end
    object StringField7: TStringField
      DisplayLabel = #33258#23450#20041'2'
      FieldName = 'custom2'
      Size = 200
    end
    object StringField8: TStringField
      DisplayLabel = #33258#23450#20041'3'
      FieldName = 'custom3'
      Size = 200
    end
    object StringField9: TStringField
      DisplayLabel = #33258#23450#20041'4'
      FieldName = 'custom4'
      Size = 200
    end
    object StringField10: TStringField
      DisplayLabel = #33258#23450#20041'5'
      FieldName = 'custom5'
      Size = 200
    end
    object StringField11: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'1'
      FieldName = 'p_custom1'
      Size = 200
    end
    object StringField12: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'2'
      FieldName = 'p_custom2'
      Size = 200
    end
    object StringField13: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'3'
      FieldName = 'p_custom3'
      Size = 200
    end
    object StringField14: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'4'
      FieldName = 'p_custom4'
      Size = 200
    end
    object StringField15: TStringField
      DisplayLabel = #36135#21697#33258#23450#20041'5'
      FieldName = 'p_custom5'
      Size = 200
    end
    object StringField16: TStringField
      FieldName = 'unitname'
      Size = 60
    end
    object IntegerField2: TIntegerField
      FieldName = 'productpid'
    end
    object cdsBombid: TIntegerField
      FieldName = 'bid'
    end
    object cdsBombno: TIntegerField
      FieldName = 'bno'
    end
    object cdsBomrawqty: TFloatField
      FieldName = 'rawqty'
    end
    object cdsBomwasterate: TFloatField
      FieldName = 'wasterate'
    end
    object cdsBomtraderid: TIntegerField
      FieldName = 'traderid'
    end
  end
  object pmMakeBill: TPopupMenu
    Left = 304
    Top = 449
    object muMkPurOrder: TMenuItem
      Caption = #19979#36798#37319#36141#35746#21333
    end
    object muMkPurchase: TMenuItem
      Caption = #19979#36798#37319#36141#24320#21333
    end
    object muMkMachining: TMenuItem
      Caption = #19979#36798#29983#20135#21152#24037#21333
    end
  end
end
